/*  1:   */ package com.rinsi.login;
/*  2:   */ 
/*  3:   */ import com.rinsi.core.contoller.CoreController;
/*  4:   */ import com.rinsi.core.service.CoreService;
/*  5:   */ import com.rinsi.util.MapUtil;
/*  6:   */ import java.util.Map;
/*  7:   */ import javax.servlet.http.HttpServletRequest;
/*  8:   */ import org.springframework.beans.factory.annotation.Autowired;
/*  9:   */ import org.springframework.stereotype.Controller;
/* 10:   */ import org.springframework.ui.ModelMap;
/* 11:   */ import org.springframework.web.bind.annotation.RequestMapping;
/* 12:   */ 
/* 13:   */ @Controller
/* 14:   */ public class LoginController
/* 15:   */   extends CoreController
/* 16:   */ {
/* 17:   */   @Autowired
/* 18:   */   private LoginService loginService;
/* 19:   */   
/* 20:   */   @RequestMapping({"/login"})
/* 21:   */   public Map<String, Object> login(ModelMap model, HttpServletRequest request)
/* 22:   */   {
/* 23:41 */     Map<String, Object> rMap = this.loginService.login(model);
/* 24:   */     
/* 25:43 */     model.putAll(rMap);
/* 26:   */     
/* 27:45 */     return model;
/* 28:   */   }
/* 29:   */   
/* 30:   */   @RequestMapping({"/captcha"})
/* 31:   */   public Map<String, Object> captcha(ModelMap model, HttpServletRequest request)
/* 32:   */   {
/* 33:58 */     return model;
/* 34:   */   }
/* 35:   */   
/* 36:   */   @RequestMapping({"/index"})
/* 37:   */   public Map<String, Object> index(ModelMap model, HttpServletRequest request)
/* 38:   */   {
/* 39:67 */     Map<String, Object> rMap = this.loginService.load(model);
/* 40:69 */     if (!MapUtil.getBoolean(rMap, "success").booleanValue()) {
/* 41:71 */       model.put("viewPage", "/login");
/* 42:   */     }
/* 43:74 */     model.putAll(rMap);
/* 44:   */     
/* 45:76 */     return model;
/* 46:   */   }
/* 47:   */   
/* 48:   */   @RequestMapping({"/workinfo"})
/* 49:   */   public Map<String, Object> workinfo(ModelMap model, HttpServletRequest request)
/* 50:   */   {
/* 51:83 */     Map<String, Object> rMap = this.loginService.workinfo(model);
/* 52:   */     
/* 53:85 */     model.putAll(rMap);
/* 54:   */     
/* 55:87 */     return model;
/* 56:   */   }
/* 57:   */   
/* 58:   */   public CoreService servce()
/* 59:   */   {
/* 60:94 */     return this.loginService;
/* 61:   */   }
/* 62:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.login.LoginController
 * JD-Core Version:    0.7.0.1
 */